import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int x , y ,z;
        Scanner scanner = new Scanner(System.in);
        x = scanner.nextInt();
        y = scanner.nextInt();
        z = scanner.nextInt();
        if (x > 0 && y < 50) {
            y = x + y;
        }else {
            if (x > 0 || z > 0) {
                z = y + 50;
                z = z + 50;
            } else {
                x = 0 - x;
            }
        }
        if (z >= 50) {
            z = z + 1;
        } else {
            z = 0 - z;
        }
        System.out.println(x);
        System.out.println(y);
        System.out.println(z);
    }
}
